package com.youlai.system.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.youlai.system.common.base.BaseEntity;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 等级表
 */
@TableName(value = "sys_degree")
@Data
public class SysDegree extends BaseEntity {
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 学生ID
     */
    private Long studentId;

    /**
     * 课程ID
     */
    private Long courseId;

    /**
     * 等级
     */
    private Integer degree;

    /**
     * 等级A是否连续
     */
    private Integer continuous;

    /**
     * 周期
     */
    private Integer month;

    /**
     * 评级的最新的scoreId;
     */
    private Long lastScoreId;

    /**
     * 成绩数量
     */
    private Integer scoreCount;

    /**
     * 成绩列表
     */
    private String scoreList;

    /**
     * 最新考试时间
     */
    @JsonInclude(value = JsonInclude.Include.NON_NULL)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime lastTime;

    /**
     * 若是逻辑删除的标志位
     */
    private Integer deleted;
}
